<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>角色添加-PIGS后台系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/static/res/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/static/res/hint/css/message.css">

    <style type="text/css">
        .layui-form-item .layui-inline {
            width: 33.333%;
            float: left;
            margin-right: 0;
        }

        @media (max-width: 1240px) {
            .layui-form-item .layui-inline {
                width: 100%;
                float: none;
            }
        }
    </style>
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <br/>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label is-required">角色名</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input roleName" name="roleName" placeholder="请输入角色名" maxlength="10"
                       autocomplete="off">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label is-required">描述</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input roleDescription" name="roleDescription" placeholder="请输入描述"
                       maxlength="10" autocomplete="off">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                    <select name="roleState" class="roleState" lay-filter="roleState">
                        <option value="0">显示</option>
                        <option value="1">隐藏</option>
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label is-required">菜单权限</label>
                <div class="layui-input-block">
                    <div id="menuList" class="xm-select-demo">

                    </div>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="roleSave">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>

</form>
<script type="text/javascript" src="/static/view/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/res/layui/layui.js"></script>
<script type="text/javascript" src="/static/res/hint/js/message.js"></script>
<script type="text/javascript" src="/static/view/page/menu/js/xm-select.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="/static/view/page/role/js/role-save.js"></script>
</body>
</html>
